package com.hzy.ums.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员收货地址业务对象 ums_member_address
 *
 * @author zengxin
 * @date 2023-10-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MemberAddressBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 会员id
     */
    @NotNull(message = "会员id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long memberId;

    /**
     * 收货人名称
     */
    @NotBlank(message = "收货人名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 隐藏前三位后四位的手机号
     */
    @NotBlank(message = "隐藏前三位后四位的手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phoneHidden;

    /**
     * 是否为默认
     */
    @NotNull(message = "是否为默认不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer defaultStatus;

    /**
     * 邮政编码
     */
    @NotBlank(message = "邮政编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String postCode;

    /**
     * 省份/直辖市
     */
    @NotBlank(message = "省份/直辖市不能为空", groups = { AddGroup.class, EditGroup.class })
    private String province;

    /**
     * 城市
     */
    @NotBlank(message = "城市不能为空", groups = { AddGroup.class, EditGroup.class })
    private String city;

    /**
     * 区
     */
    @NotBlank(message = "区不能为空", groups = { AddGroup.class, EditGroup.class })
    private String district;

    /**
     * 详细地址(街道)
     */
    @NotBlank(message = "详细地址(街道)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String detailAddress;

    /**
     * 是否默认
     */
    @NotNull(message = "是否默认不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isDefault;

    /**
     * 省份/直辖市id
     */
    @NotNull(message = "省份/直辖市id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long provinceId;

    /**
     * 城市id
     */
    @NotNull(message = "城市id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long cityId;

    /**
     * 区id
     */
    @NotNull(message = "区id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long districtId;


}
